package com.gitee.ykr.lightweight.rpc.config;

import lombok.Data;

/**
 * @author YKR
 * @Describe
 * @date 2021/8/23
 */
@Data
public class CommonProperties {
    private String eurekaEnable;
    private String loadBalanceType;

    private Integer serverPoolCoreSize;
    private Integer serverPoolMaxSize;
    private String serverPoolQunueType;
    private Integer serverPoolQunueSize;
    private Long serverPoolKeepAliveTime;
    private String serverPoolRejectType;


    private Integer clientPoolCoreSize;
    private Integer clientPoolMaxSize;
    private String clientPoolQunueType;
    private Integer clientPoolQunueSize;
    private Long clientPoolKeepAliveTime;
    private String clientPoolRejectType;

    private String nettyClientRenewInterval;

    private String monitorUrl;
    private String httpConnectTimeout;
    private String httpConnectRequestTimeout;
    private String httpSocketTimeout;
    private String httpSendBufSize;
    private String httpRcvBufSize;
    private String httpBackLogSize;
    private String httpMaxTotal;

    private String monitorRedisExpire;
    private String monitorRedisExpireTimeUnit;

    /**
     * 邮箱相关配置，to cc 和bcc可配置多个，用";"隔开
     */
    private String mailEnable;
    private String mailHost;
    private String mailUserName;
    private String mailUserPassword;
    private String isMailEnableSsl;
    private String mailFrom;
    private String mailTo;
    private String mailCc;
    private String mailBcc;


    public static final int CPUS = Math.max( 2, Runtime.getRuntime().availableProcessors() );
}
